﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Assets._Script
{
    //自定义数学类：静态工具类
    public static class MyMathClass
    {
        //public static double PI = 3.14159265;
        //const 修饰的常量默认也被认为是静态的
        public const double PI = 3.14159265;

        // 求指定半径的圆周长
        public static void Circle(double radius) {
            Debug.Log($"半径为：{radius} 的圆周长为：{2 * PI * radius}");
        }
    }
}
